#pragma once

#ifndef QCEFHIDENORWIDGET_H
#define QCEFHIDENORWIDGET_H

#include <QtCore>
#include <QtGui>
#include <QtWidgets>

#include "QCefNorWidget.h"

//////////////////////////////////////////////////////////////////////////
//
class QCefHideNorWidget : public QCefNorWidget
{
    Q_OBJECT
public:
    QCefHideNorWidget(bool bHide = true, QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags(Qt::Tool));
    QCefHideNorWidget(const QString & strUrl, bool bHide = true, QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags(Qt::Tool));
    virtual ~QCefHideNorWidget();

public:
    void hideWidget();
    void showWidget();

protected:
    int initHide();

protected:
    virtual void firstPolishEvent(QEvent * event) override;
};

#endif // QCEFHIDENORWIDGET_H
